<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<div id="app">
			<!-- 用mockjs模拟form表单验证 -->
			<form action="" class="form1" id="loginForm">
				<table>
					<tr>
						<td>用户名：</td>
						<td><input type="text" name="user" class="user" /></td>
					</tr>
					<tr>
						<td>密&nbsp;&nbsp;码：</td>
						<td><input type="password" name="pwd" class="pwd" /></td>
					</tr>
					<tr>
						<td></td>
						<td>
							<!-- type使用submit和reset会导致页面默认刷新的行为，改为普通的button按钮解决-->
							<input type="button" value="登录" class="login" />
							<input type="button" value="重置" class="reset" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>
